<%--
  Created by IntelliJ IDEA.
  User: z'y'l
  Date: 2021/6/30
  Time: 16:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="UTF-8">
    <base href="<%=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/" %>">
    <link href="bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript" src="bootstrap-3.3.7-dist/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="bootstrap-3.3.7-dist/js/bootstrap.js"></script>
    <script type="text/javascript" src="bootstrap-3.3.7-dist/js/npm.js"></script>
    <title>学生管理</title>
</head>
<script type="text/javascript">
    function add() {
        location.href = "addxs.jsp";
    }
    function hbj() {
        location.href="Changbj.jsp";
    }


</script>
<style>
    .form-control {
        width: 50%;
    }

    .form-control {
        width: 160px;
        margin-right: 10px;
    }
</style>
<body>
<table class="table table-hover table-striped table-bordered table-sm"
       id="resultshow">
    <tr>
        <td colspan="13" align="center">
            <h1>用户管理系统</h1>
        </td>
    </tr>
    <tr>
        <td colspan="4" align="center">
            <button type="button" class="btn btn-info" onclick="add()">添加信息</button>
        </td>
        <td colspan="4" align="center">
            <form action="#" method="post">
                <table>
                    <tr>
                        <td>
                            <input type="text" class="form-control" name="content"></td>

                        <td>
                            <button type="submit" class="btn btn-info">查询</button>
                        </td>
                    </tr>
                </table>
            </form>
        </td>

    </tr>
    <tr>
        <td align="center">用户ID</td>
        <td align="center">用户名</td>
        <td align="center">用户密码</td>
        <td align="center">用户姓名</td>
        <td align="center">用户手机号</td>
        <td align="center">用户邮箱</td>
        <td align="center">用户性别</td>
        <td align="center">用户年龄</td>
        <td align="center">用户职业</td>
        <td align="center">用户地址</td>
        <td align="center">用户状态</td>
        <td align="center">用户头像</td>
        <td align="center">操作</td>
    </tr>

    <c:forEach items="${user}" var="u">
        <tr>
            <td>${u.uid}</td>
            <td>${u.uusername}</td>
            <td>${u.upass}</td>
            <td>${u.uname}</td>
            <td>${u.unumber}</td>
            <td>${u.uemile}</td>
            <td>${u.ugender}</td>
            <td>${u.uage}</td>
            <td>${u.uprofession}</td>
            <td>${u.uaddress}</td>
            <td>${u.ustate}</td>
            <td>${u.uheadx}</td>
            <td><a href="/up?sno=${u.uid}">修改</a>&nbsp;<a href="/user/del?uid=${u.uid}">删除</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
